package org.hyl.javabase;


public class tz{
	

	private int old=1;
	public int n=0;
	public tz[] subtzs=new tz[100];
	public static  int cc=0;
	public int add1(){				
	
		if (old>=3)  {
			 subtzs[n]= new tz();	
			 n++;
		}
		
		for(int i=0;i<n;i++){
			subtzs[i].add1();
		}
		//�������������� �Լ��ɳ�
		old++;
		return old;
	}

	public int sum(){
		int m= n;
		for(int i=0;i<n;i++){
			m+=subtzs[i].sum();
		}
		return m;
	}
	
}